package com.yunji.cabinet.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Project: yunji-coffee
 * @Package com.yunji.cabinet.dto
 * @FileName BindCodeDTO.java
 * @Copyright Copyright © 2024 云集互联. All Rights Reserved
 * @Company com
 * @Version 1.0
 * @Since JDK1.8.0_201
 * @CreateTime 2024-06-08 18:13:57
 * @Description 绑定二维码和芯片信息
 * @Modification History
 * Author					History Time			Version			Description
 * -------------------------------------------------------------------------------
 * HuaAo0803@163.com	2024-06-08 18:13:57		1.0				1.0
 */
@ToString
@Data
public class DeviceBindDTO implements Serializable {
    private static final long serialVersionUID = 6139050306123800937L;

    @NotBlank(message = "二维码Code不能为空")
    @ApiModelProperty(value = "二维码Code", required = true)
    private String qrCode;

    @NotBlank(message = "芯片IMEI不能为空")
    @ApiModelProperty(value = "芯片IMEI", required = true)
    private String imei;

    @NotBlank(message = "芯片SN不能为空")
    @ApiModelProperty(value = "芯片SN", required = true)
    private String sn;
    public DeviceBindDTO(){}

    public DeviceBindDTO(String imei, String qrCode, String sn) {
        this.imei = imei;
        this.qrCode = qrCode;
        this.sn = sn;
    }
}